import Vue from 'vue'
import Router from 'vue-router'
//begin====================PUBLIC================begin//


import index from '@/components/index.vue' //首页
import addr from '@/components/addr.vue' //地址


import recommend from '@/components/recommend.vue' //推荐
import companyFirm from '@/components/companyFirm.vue' //公司详情
//end====================PUBLIC================end//
//
//
//begin====================USER==================begin//


import usersLogin from '@/components/user/usersLogin.vue' //用户 登陆
import usersRegister from '@/components/user/usersRegister.vue' //用户 注册
import usersForget from '@/components/user/usersForget.vue' //用户 忘记密码
import usersFind from '@/components/user/usersFind.vue' //用户 发现页面
import usersPost from '@/components/user/usersPost.vue' //用户 职位详情
import usersFeedback from '@/components/user/usersFeedback.vue' //用户 用户界面 反馈
import usersDeliver from '@/components/user/usersDeliver.vue' //用户 人查看投递简历页面
import usersInterview from '@/components/user/usersInterview.vue' //用户 用户面试


import usersMy from '@/components/user/usersMy.vue' //用户 我的页面
import checking from '@/components/user/checking.vue' //用户 个人验证
import usersResume from '@/components/user/usersResume.vue' //用户 我的页面-我的简历
import found from '@/components/user/found.vue' //用户 创建简历
import usersInformation from '@/components/user/usersInformation.vue' //用户 我的页面-个人信息
import job from '@/components/user/job.vue' //用户 求职意向
import addJob from '@/components/user/addJob.vue' //用户 添加或者修改求职意向
import work from '@/components/user/work.vue' //用户 工作经历
import education from '@/components/user/education.vue' //用户 教育经历
import usersStore from '@/components/user/usersStore.vue' //用户 个人收藏

//end====================USER==================end//
//
//
//begin===================COMPANY=================begin//


import companyLogin from '@/components/company/companyLogin.vue' //公司 登陆
import companyRegister from '@/components/company/companyRegister.vue' //公司 注册
import companyForget from '@/components/company/companyForget.vue' //公司 忘记密码
import companyMy from '@/components/company/companyMy.vue' //公司 我的页面
import company from '@/components/company/company.vue' //公司 我的公司
import means from '@/components/company/means.vue' //公司 资料编辑
import companyInformation from '@/components/company/companyInformation.vue' //公司个人信息
import spread from '@/components/company/spread.vue' //公司 我的推广
import integral from '@/components/company/integral.vue' //公司 我的积分
import manage from '@/components/company/manage.vue' //公司 职位管理
import newJob from '@/components/company/newJob.vue' //公司 发布职位
import updateJob from '@/components/company/updateJob.vue' //公司 发布职位

import companyFind from '@/components/company/companyFind.vue' //公司 发现页面
import companyPost from '@/components/company/companyPost.vue' //公司 职位详情
import companyStore from '@/components/company/companyStore.vue' //公司 公司收藏
import companyResume from '@/components/company/companyResume.vue' //公司 公司页面我的简历
import invite from '@/components/company/invite.vue' //公司 邀约面试
import companyFeedback from '@/components/company/companyFeedback.vue' //公司 界面反馈
import companyInterview from '@/components/company/companyInterview.vue' //公司 约见面试
import companyDeliver from '@/components/company/companyDeliver.vue'//公司 接收到的简历页面
import license from '@/components/license.vue'//公司 接收到的简历页面
import information from '@/components/company/information.vue' //个人信息
import post from '@/components/post.vue' // 职业详情
import firm from '@/components/firm.vue' // 公司详情
import userDelivery from '@/components/user/usersDeliver.vue' //已投简历
import companyDelivery from '@/components/company/companyDeliver.vue' //已投简历
import faxian from '@/components/faxian.vue' //发现
import mianshi from '@/components/mianshi.vue'
import CompanyFeedback from '@/components/company/companyFeedback.vue'
import UserFeedback from '@/components/user/usersFeedback.vue'


const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}
Vue.use(Router)
export default new Router({
  routes: [
    //begin====================PUBLIC================begin//
    {
      path: '/',
      name: 'index',
      component: index
    }, //首页
    {
      path: '/addr',
      name: 'addr',
      component: addr
    },//我的城市
    {
      path: '/recommend',
      name: 'recommend',
      component: recommend
    },//推荐  tuijian
    {
      path: '/companyFirm',
      name: 'companyFirm',
      component: companyFirm
    },//公司详情

    //end====================PUBLIC================end//
    //
    //
    //begin====================USER=================begin//

    // //**********张钰烽**********//
    {
      path: '/usersLogin',
      name: 'usersLogin',
      component: usersLogin
    },//用户 登陆
    {
      path: '/usersRegister',
      name: 'usersRegister',
      component: usersRegister
    },//用户 注册
    {
      path: '/usersForget',
      name: 'usersForget',
      component: usersForget
    },//用户 找回密码
    {
      path: '/usersFind',
      name: 'usersFind',
      component: usersFind
    },//用户 发现页面
    {
      path: '/usersPost',
      name: 'usersPost',
      component: usersPost
    },//用户 职位详情
    {
      path: '/usersFeedback',
      name: 'usersFeedback',
      component: usersFeedback
    },  //用户 界面 反馈
    {
      path: '/usersDeliver',
      name: 'usersDeliver',
      component: usersDeliver
    }, //用户 个人查看 投递简历 页面
    {
      path: '/usersInterview',
      name: 'usersInterview',
      component: usersInterview
    }, //用户 用户面试

    //**********杨亮**********//
    {
      path: '/usersMy',
      name: 'usersMy',
      component: usersMy
    },//用户 我的界面
    {
      path: '/checking',
      name: 'checking',
      component: checking
    }, //用户 个人验证
    {
      path: '/usersResume',
      name: 'usersResume',
      component: usersResume
    },//用户 我的页面-我的简历
    {
      path: '/found',
      name: 'found',
      component: found
    }, //用户 创建简历
    {
      path: '/usersInformation',
      name: 'usersInformation',
      component: usersInformation
    },//用户 我的页面-个人信息
    {
      path: '/job',
      name: 'job',
      component: job
    },  //用户 求职意向
    {
      path: '/addJob',
      name: 'addJob',
      component: addJob
    }, //用户 添加或者修改求职意向
    {
      path: '/work',
      name: 'work',
      component: work
    }, //用户 工作经历
    {
      path: '/education',
      name: 'education',
      component: education
    }, //用户 教育经历
    {
      path: '/usersStore',
      name: 'usersStore',
      component: usersStore
    }, //用户 个人收藏

    //end====================USER==================end//
    //
    //
    //begin===================COMPANY=================begin//

    // //**********初旭东**********//
    {
      path: '/companyLogin',
      name: 'companyLogin',
      component: companyLogin
    },//公司 登陆
    {
      path: '/companyRegister',
      name: 'companyRegister',
      component: companyRegister
    },//公司 注册
    {
      path: '/companyForget',
      name: 'companyForget',
      component: companyForget
    },//公 司找回密码
    {
      path: '/companyMy',
      name: 'companyMy',
      component: companyMy
    },//公司 我的界面
    {
      path: '/company',
      name: 'company',
      component: company
    },  //公司 我的公司
    {
      path: '/means',
      name: 'means',
      component: means
    },  //公司 资料编辑
    {
      path: '/companyInformation',
      name: 'companyInformation',
      component: companyInformation
    },  //公司 个人信息
    {
      path: '/spread',
      name: 'spread',
      component: spread
    },  //公司 我的推广
    {
      path: '/integral',
      name: 'integral',
      component: integral
    },  //公司 我的积分
    {
      path: '/manage',
      name: 'manage',
      component: manage
    },  //公司 职位管理
    {
      path: '/newJob',
      name: 'newJob',
      component: newJob
    }, //公司 发布职位


    {
      path: '/companyFind',
      name: 'companyFind',
      component: companyFind
    },//公司 发现页面
    {
      path: '/companyPost',
      name: 'companyPost',
      component: companyPost
    },//公司 职位详情
    {
      path: '/companyStore',
      name: 'companyStore',
      component: companyStore
    }, //公司收藏
    {
      path: '/companyResume',
      name: 'companyResume',
      component: companyResume
    }, //公司 公司页面我的简历
    {
      path: '/invite',
      name: 'invite',
      component: invite
    },  //公司 邀约面试
    {
      path: '/companyFeedback',
      name: 'companyFeedback',
      component: companyFeedback
    },  //公司 界面反馈
    {
      path: '/companyInterview',
      name: 'companyInterview',
      component: companyInterview
    }, // 公司 约见面试
    {
      path: '/companyDeliver',
      name: 'companyDeliver',
      component: companyDeliver
    }, //公司 接收到的简历页面
    {
      path: '/license',
      name: 'license',
      component: license
    }, //公司 接收到的简历页面
    {
      path: '/updateJob',
      name: 'updateJob',
      component: updateJob
    }, //公司 接收到的简历页面
    {
      path: '/information',
      name: 'information',
      component: information
    }, //公司 接收到的简历页面
    {
      path: '/userDelivery',
      name: 'userDelivery',
      component: userDelivery
    }, //公司 接收到的简历页面
    {
      path: '/companyDelivery',
      name: 'companyDelivery',
      component: companyDelivery
    }, //公司 接收到的简历页面
    {
      path: '/faxian',
      name: 'faxian',
      component: faxian
    },
    {
      path: '/mianshi',
      name: 'mianshi',
      component: mianshi
    },
    {
      path: '/userFeedback',
      name: 'userFeedback',
      component: UserFeedback
    },
    {
      path: '/companyFeedback',
      name: 'companyFeedback',
      component: CompanyFeedback
    },
    //end===================COMPANY=================end//

    // import tuijian from '@/components/tuijian.vue' //推荐
// import faxian from '@/components/faxian.vue' //发现
// import my from '@/components/usersMy.vue' //我的

// import delivery from '@/components/delivery.vue' //已投简历
// import store from '@/components/store.vue' //我的收藏
// import resume from '@/components/resume.vue' //我的简历
// import mianshi from '@/components/mianshi.vue' //面试or约面
// import feedback from '@/components/feedback.vue' //反馈
// import checking from '@/components/checking.vue' //个人验证
// import integral from '@/components/integral.vue' //我的积分
// import spread from '@/components/spread.vue' //我的推广
// import work from '@/components/work.vue' //工作经历
// import education from '@/components/education.vue' //教育经历
// import job from '@/components/job.vue' //求职意向
// import addJob from '@/components/addJob.vue' //添加修改求职意向
// import manage from '@/components/manage.vue' //职位管理
// import newJob from '@/components/newJob.vue' //发布职位
// import login from '@/components/login.vue' //登录页
// import found from '@/components/found.vue' //创建简历
// import addr from '@/components/addr.vue' //地址
// import company from '@/components/company.vue' //我的公司
// import means from '@/components/means.vue' //公司资料
// import invite from '@/components/invite.vue' //邀约面试
// import license from '@/components/license.vue' //公司验证
// import news from '@/components/news.vue' //消息列表
// import cc from '@/components/cc.vue' //测试页面

    // {
    //   path: '/tuijian',
    //   name: 'tuijian',
    //   component: tuijian
    // },
    // {
    //   path: '/faxian',
    //   name: 'faxian',
    //   component: faxian
    // },
    // {
    //   path: '/my',
    //   name: 'my',
    //   component: my
    // },
    {
      path: '/post',
      name: 'post',
      component: post
    },
    {
      path: '/firm',
      name: 'firm',
      component: firm
    },
    // {
    //   path: '/delivery',
    //   name: 'delivery',
    //   component: delivery
    // },
    // {
    //   path: '/store',
    //   name: 'store',
    //   component: store
    // },
    // {
    //   path: '/resume',
    //   name: 'resume',
    //   component: resume
    // },
    // {
    //   path: '/mianshi',
    //   name: 'mianshi',
    //   component: mianshi
    // },
    // {
    //   path: '/feedback',
    //   name: 'feedback',
    //   component: feedback
    // },
    // {
    //   path: '/checking',
    //   name: 'checking',
    //   component: checking
    // },
    // {
    //   path: '/integral',
    //   name: 'integral',
    //   component: integral
    // },
    // {
    //   path: '/spread',
    //   name: 'spread',
    //   component: spread
    // },
    // {
    //   path: '/information',
    //   name: 'information',
    //   component: information
    // },
    // {
    //   path: '/work',
    //   name: 'work',
    //   component: work
    // },
    // {
    //   path: '/education',
    //   name: 'education',
    //   component: education
    // },
    // {
    //   path: '/job',
    //   name: 'job',
    //   component: job
    // },
    // {
    //   path: '/addJob',
    //   name: 'addJob',
    //   component: addJob
    // },
    // {
    //   path: '/newJob',
    //   name: 'newJob',
    //   component: newJob
    // },
    // {
    //   path: '/manage',
    //   name: 'manage',
    //   component: manage
    // },
    // {
    //   path: '/login',
    //   name: 'login',
    //   component: login
    // },
    // {
    //   path: '/found',
    //   name: 'found',
    //   component: found
    // },
    // {
    //   path: '/addr',
    //   name: 'addr',
    //   component: addr
    // },
    // {
    //   path: '/company',
    //   name: 'company',
    //   component: company
    // },
    // {
    //   path: '/means',
    //   name: 'means',
    //   component: means
    // },{
    //   path: '/invite',
    //   name: 'invite',
    //   component: invite
    // },{
    //   path: '/license',
    //   name: 'license',
    //   component: license
    // },{
    //   path: '/news',
    //   name: 'news',
    //   component: news
    // },
    // {
    //   path: '/cc',
    //   name: 'cc',
    //   component: cc
    // }
  ]
})
